import request from '@/utils/request'

// 查询知情同意列表
export function listConsent(query) {
  return request({
    url: '/human/consent/list',
    method: 'get',
    params: query
  })
}

// 查询知情同意详细
export function getConsent(consentId) {
  return request({
    url: '/human/consent/' + consentId,
    method: 'get'
  })
}

// 新增知情同意
export function addConsent(data) {
  return request({
    url: '/human/consent',
    method: 'post',
    data: data
  })
}

// 修改知情同意
export function updateConsent(data) {
  return request({
    url: '/human/consent',
    method: 'put',
    data: data
  })
}

// 删除知情同意
export function delConsent(consentId) {
  return request({
    url: '/human/consent/' + consentId,
    method: 'delete'
  })
}
